<?php
/**
 * Created by PhpStorm.
 * User: chl
 * Date: 2017/3/29 0029
 * Time: 15:48
 */
namespace app\admin\validate;
use think\Validate;
class Advert extends Validate{
    protected $rule = [
        ['title','require|unique:advert','标题不能为空|广告标题已存在'],
    ];
    protected $scene = [
        'advertAdd' => ['title'],
    ];
}